
package com.joysuch.wwyt.monitoringcenter.bean;

import java.util.ArrayList;
import java.util.List;

import lombok.Data;

@Data
public class MajarHazardStatBean {

    private List<MajarHazardDangerCountBean> dangerCount;
    private List<MajarHazardWarnCountBean> warnCount;

    public MajarHazardStatBean addDanger(MajarHazardDangerCountBean b) {
        if (dangerCount == null) {
            dangerCount = new ArrayList<MajarHazardDangerCountBean>(3);
        }
        dangerCount.add(b);
        return this;
    }

    public MajarHazardStatBean addWarn(MajarHazardWarnCountBean b) {
        if (warnCount == null) {
            warnCount = new ArrayList<MajarHazardWarnCountBean>(3);
        }
        warnCount.add(b);
        return this;
    }
}
